<template>
	<div class="unit">
		<el-descriptions :column="1" v-if="activeName == '2'">
			<el-descriptions-item label="意见上传:">
				<HyUpload :type="'view'" v-model="message.expertOpinionFileObj" />
			</el-descriptions-item>
			<el-descriptions-item label="备注:">{{ message?.expertOpinionRemarkStr }}</el-descriptions-item>
		</el-descriptions>
		<el-descriptions :column="1" v-if="activeName == '3'">
			<el-descriptions-item label="意见上传:">
				<HyUpload :type="'view'" v-model="message.institutionOpinionFileObj" />
			</el-descriptions-item>
			<el-descriptions-item label="备注:">{{ message?.institutionOpinionRemarkStr }}</el-descriptions-item>
		</el-descriptions>
	</div>
</template>

<script lang="ts" setup>
import HyUpload from '/@/components/HyUpload/index.vue';
import { toRefs, defineProps } from 'vue';

const props = defineProps({
	message: {
		type: Object,
		default: () => {
			return {};
		},
	},
	activeName: {
		type: String,
		default: () => {
			return '';
		},
	},
});

const { message, activeName } = toRefs(props);
</script>

<style lang="scss" scoped>
.unit {
	padding: 20px;
	background-color: #fff;
}
:deep(.el-descriptions__label) {
	width: 15% !important;
}
</style>
